package com.consumer.controller;

import com.common.response.ResponseResult;
import com.consumer.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author youxin
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/11/18
 */

@RestController
public class LoginController {
    @Autowired
    private LogService logService;

    /**
     * @描述
     * @参数 多级缓存获取用户登录信息
     * @返回值
     * @创建人 尤鑫
     * @创建时间 2021/11/17
     */
    @RequestMapping(value = "/getLoginList", method = RequestMethod.GET)
    public ResponseResult getLoginList(String id) {
        logService.getLoginList(id);
        return ResponseResult.success();
    }
}
